package com.graduation.vaccine.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.graduation.vaccine.pojo.Appointment;
import com.graduation.vaccine.vo.AppointmentVo;
import com.graduation.vaccine.vo.DataListVo;
import com.graduation.vaccine.vo.RespBean;

import java.text.ParseException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ZhaoJunYao
 * @since 2022-04-22
 */
public interface IAppointmentService extends IService<Appointment> {

    /**
     * 根据手机号得到用户的列表
     * @param phone
     * @return
     */
    RespBean getListByPhone(String phone);

    /**
     * 提交预约订单
     * @param appointmentVo
     * @return
     */
    RespBean addOne(AppointmentVo appointmentVo) throws ParseException;

    /**
     * 可预约时间
     * @param dataListVo
     * @return
     */
    RespBean getDataList(DataListVo dataListVo) throws ParseException;

    //web——订单列表
    RespBean getListByCode(String departmentCode);

    //web——修改订单状态
    RespBean updateStatus(Integer id, Integer status,Integer currentStatus);
}
